import 'package:example/components/pool.dart';
import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart' hide Action, Page;

import '../base/state.dart';


Widget buildView(PageState state, Dispatch dispatch, ViewService viewService) {
  final List<Widget> children = [];
  for (String element in pool.keys) {
    children.add(viewService.buildComponent(element));
  }

  return Scaffold(
    appBar: AppBar(
      backgroundColor: Colors.blue,
      automaticallyImplyLeading: false,
      title: const Text('detail_page'),
    ),
    body: Container(
      child: Column(
        children: children,
      ),
    ),
  );
}
